#!/bin/sh

echo `date`: 'stop-all-osd.sh start' >> /usr/local/zabbix/node_subhealthy.log

tmp=`service ceph status | grep running | grep -v mon |grep -v === | awk -F : '{print $1}'`
for i in $tmp;
do 
	service ceph stop $i
	echo "stop osd: $i"  >> /usr/local/zabbix/node_subhealthy.log
done
